<ion-view hide-tabs title="雇主信息">
  <ion-nav-bar class="bar-energized light">
    <ion-nav-back-button>返回
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content >
    <div style="text-align: center;">
      <img ng-src="{{employerInfo.headimgurl}}" src="" onerror="this.src='img/adam.jpg'" style="width:80px;height: 80px;margin: 10px">
      <div>
        <input type="file" nv-file-select="" uploader="uploader" >
        <button type="button" ng-click="uploader.uploadAll()">上传</button>
      </div>
    </div>
    <form name="editEmployerForm" ng-submit="submitEditEmployer()">
      <div class="list">

        <label class="item item-input">
          <span class="input-label">用户名：</span>
          <input type="text" ng-model="employerInfo.username">
        </label>
        <label class="item item-input item-select">
          <div class="input-label">
            性别
          </div>
          <select ng-model="employerInfo.sex">
            <option ng-selected="employerInfo.sex==1">男</option>
            <option ng-selected="employerInfo.sex==2">女</option>
          </select>
        </label>

        <label class="item item-input">
          <span class="input-label">联系方式：</span>
          <input type="text" readonly ng-model="employerInfo.phoneNo">
        </label>
        <label class="item item-input">
          <span class="input-label">积分：</span>
          <input type="text" readonly ng-model="employerInfo.integral">
        </label>
        <label class="item item-input">
          <span class="input-label">等级：</span>
          <input type="text" readonly ng-model="employerInfo.grade">
        </label>
        <label class="item item-input">
          <span class="input-label">邮箱：</span>
          <input type="text"  ng-model="employerInfo.email">
        </label>
        <label class="item item-input">
          <span class="input-label">联系地址：</span>
          <input type="text"  ng-model="employerInfo.address">
        </label>
      </div>
      <div style="text-align: center;">
      <button class="button button-positive" type="submit" style="margin-top: 20px;width: 80%;" ng-disabled="">修改</button>
      </div>
    </form>
  </ion-content>
</ion-view>
